import request from '@/axios'
import type { UserType } from './types'

export const loginApi = (data: UserType): Promise<IResponse<UserType>> => {
  return request.post({ url: '/login/login', data })
}

export const getCaptcha = () => {
  return request.get({ url: '/login/captcha' })
}
